<?php
header("Content-type: application/x-javascript");
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', time() ) . ' GMT');

$param = $_GET['param'];
header('Etag: '.md5($param));

$time = date('D, d M Y H:i:s', time() + 864000) . ' GMT';
header("Expires: $time");


$param_arr = preg_split('/_/', $param);

$BASE = dirname(__FILE__);
$str = '';

foreach($param_arr as $filename) {
	$str .= file_get_contents( $BASE.'/'.$filename.'.js');
	$str .= "\n\n";
}

echo $str;

?>